package org.spring.springboot.controller;

import org.spring.springboot.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2018/5/4.
 */

@RestController
public class RedisController {

    @Autowired
    private CityService cityService;

    @RequestMapping("first")
    public Object get(){
         return cityService.getCityByName("cN");
    }
}
